build: Add Makefile-decls.am
authorColin Walters <walters@verbum.org>
Fri, 3 Jan 2014 16:39:27 +0000 (11:39 -0500)
committerColin Walters <walters@verbum.org>
Fri, 3 Jan 2014 16:39:27 +0000 (11:39 -0500)
I'll be sharing this across more of my projects.

Makefile-decls.am [new file with mode: 0644]
Makefile.am

diff --git a/Makefile-decls.am b/Makefile-decls.am
new file mode 100644 (file)
index 0000000..4d02f02
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright (C) 2011,2014 Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# Common variables
+ACLOCAL_AMFLAGS =
+AM_CPPFLAGS =
+AM_CFLAGS =
+DISTCHECK_CONFIGURE_FLAGS =
+SUBDIRS =
+NULL = 
+INSTALL_DATA_HOOKS =
+BUILT_SOURCES =
+MANPAGES =
+CLEANFILES =
+EXTRA_DIST =
+bin_PROGRAMS =
+sbin_PROGRAMS =
+bin_SCRIPTS =
+lib_LTLIBRARIES =
+libexec_PROGRAMS =
+noinst_LTLIBRARIES =
+noinst_PROGRAMS =
+privlibdir = $(pkglibdir)
+privlib_LTLIBRARIES =
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA =
+INTROSPECTION_GIRS = 
+girdir = $(datadir)/gir-1.0
+gir_DATA =
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA =
+
+# This is a special facility to chain together hooks easily
+INSTALL_DATA_HOOKS =
+install-data-hook: $(INSTALL_DATA_HOOKS)
index c7ca36e96e2b076115514d8c2938b32aa3bfd483..e202f0d718aa17c32a612959f1b09cc66f913b86 100644 (file)
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
-ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
-AM_CPPFLAGS = -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"' \
+include Makefile-decls.am
+
+ACLOCAL_AMFLAGS += -I m4 ${ACLOCAL_FLAGS}
+AM_CPPFLAGS += -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"' \
        -DOSTREE_FEATURES='"$(OSTREE_FEATURES)"' \
        -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_34 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_34 \
        -DSOUP_VERSION_MIN_REQUIRED=SOUP_VERSION_2_40 -DSOUP_VERSION_MAX_ALLOWED=SOUP_VERSION_40
-AM_CFLAGS = $(WARN_CFLAGS)
-DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-maintainer-mode
-
-# Subdirectories
-SUBDIRS =
+AM_CFLAGS += $(WARN_CFLAGS)
+DISTCHECK_CONFIGURE_FLAGS += --enable-gtk-doc --disable-maintainer-mode
 
 if BUILD_EMBEDDED_DEPENDENCIES
 SUBDIRS += embedded-dependencies
@@ -36,30 +35,6 @@ if ENABLE_GTK_DOC
 SUBDIRS += doc
 endif
 
-# Common variables
-NULL = 
-INSTALL_DATA_HOOKS =
-BUILT_SOURCES =
-MANPAGES =
-CLEANFILES =
-EXTRA_DIST =
-bin_PROGRAMS =
-sbin_PROGRAMS =
-bin_SCRIPTS =
-lib_LTLIBRARIES =
-libexec_PROGRAMS =
-noinst_LTLIBRARIES =
-noinst_PROGRAMS =
-privlibdir = $(pkglibdir)
-privlib_LTLIBRARIES =
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA =
-INTROSPECTION_GIRS = 
-girdir = $(datadir)/gir-1.0
-gir_DATA =
-typelibdir = $(libdir)/girepository-1.0
-typelib_DATA =
-
 EXTRA_DIST += autogen.sh COPYING README.md
 
 if BUILD_EMBEDDED_DEPENDENCIES
@@ -110,9 +85,6 @@ include Makefile-switchroot.am
 include Makefile-tests.am
 include Makefile-boot.am
 
-install-data-hook: $(INSTALL_DATA_HOOKS)
-
-
 release-tag:
        git tag -m "Release $(VERSION)" v$(VERSION)